package com.app.ui.ui2;

import java.util.Hashtable;
import java.util.Map;

import org.jgraph.graph.DefaultEdge;
import org.jgraph.graph.GraphConstants;

public class mEdge {
	
	DefaultEdge edge;
	Map<Object, Object> edgeAtt;
	
	mEdge(int weight){
				
		edge = new DefaultEdge(weight);
		edgeAtt = new Hashtable<Object, Object>();
		int arrow = GraphConstants.ARROW_CLASSIC;
		//GraphConstants.setLineStyle(edgeAtt, GraphConstants.STYLE_ORTHOGONAL);
	   // GraphConstants.setRouting(edgeAtt, GraphConstants.ROUTING_SIMPLE);
	    GraphConstants.setLineEnd(edgeAtt , arrow);
	    GraphConstants.setEndFill(edgeAtt, true);
	    
	}
	
	public DefaultEdge getEdge(){
		
		return edge;
	}
	
	public Map<?, ?> getEdgeAtt(){
		
		return edgeAtt;
	}
}
